﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Douban.Core.Commands
{
    public class UIElementMouseLeftButtonUpCommandBehavior : CommandBehaviorBase<UIElement>
    {
        public UIElementMouseLeftButtonUpCommandBehavior(UIElement target) : base(target)
        {
            target.MouseLeftButtonUp += (sender, e) =>
            {
                e.Handled = true;
                ExecuteCommand();
            };
        }
    }
}
